package com.linewow.xhyy.nihaonew.activity;

import android.content.Intent;
import android.support.v4.app.FragmentManager;
import android.util.Log;

import com.linewow.xhyy.nihaonew.R;
import com.linewow.xhyy.nihaonew.base.BaseCompatActivity;
import com.linewow.xhyy.nihaonew.entity.user.Uinfo;
import com.linewow.xhyy.nihaonew.fragment.UserMineMainFragment;

/**
 * Created by LXR on 2016/10/31.
 */
public class UserMineActivity extends BaseCompatActivity {

    private String TAG="UserMineActivity";
    private FragmentManager fm;
    @Override
    public void initView() {
        super.initView();

        setContentView(R.layout.activity_user_mine);
        fm=getSupportFragmentManager();
    }
    @Override
    public void initData() {
        super.initData();
        Intent intent=getIntent();
        Uinfo uinfo=intent.getExtras().getParcelable("info");
        Log.e(TAG,"接受到的用户-->"+uinfo.nickname);
    }

    @Override
    public void initList() {
        super.initList();
        UserMineMainFragment fragment=new UserMineMainFragment();
        fragment.setArguments(getIntent().getExtras());
        fm.beginTransaction().add(R.id.user_main_fragment,fragment).commit();
    }

    @Override
    protected boolean translucentStatusBar() {
        return true;
    }
}
